home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!sschaem
- From: sschaem@teleport.com (Stephan Schaem)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: TMapping again!
- Date: 27 Jan 1996 23:21:42 GMT
- Organization: Teleport - Portland's Public Access (503) 220-1016
- Message-ID: <4eec27$pte@maureen.teleport.com>
- References: <4d6v0t$3dt@maureen.teleport.com> <4dg4jk$km@news.cs.tu-berlin.de> <4dhvd5$5r2@maureen.teleport.com> <38232113@kone.fipnet.fi> <4e10ol$ck3@maureen.teleport.com> <4e2ku6$31m@news.cs.tu-berlin.de>
- NNTP-Posting-Host: julie.teleport.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Philipp Boerker (rawneiha@hydra.zrz.TU-Berlin.DE) wrote:
- : sschaem@teleport.com (Stephan Schaem) writes:
-
- : > repeat 8
- : > mw D1,D2
- : > mb D0,D2
- : > addx.l d7,D0
- : > movea.l d2,a0
- : > addx.l d6,D1
- : > mw (A0),d3
- : > mw D1,D2
- : > mb D0,D2
- : > movea.l d2,a0
- : > mb (A0),d3
- : > addx.l d7,D0
- : > addx.l d6,D1
- : > mw d3,(a1)+
- : > endr
-
- : > the above map 2 pixels from a 256x256 tmap buffer...
- : > You should be able to use 24bit precission .
-
- : I think mapping 2 pixels like you did is not optimal.
- : If the first pixel is the lowest byte of a long the
- : word read will cause two mem reads. The only thing you
- : save is a write. But reads stop the processor while
- : writes don t! Do proper pipelining instead.
-
- 'proper' pipelining... or maximum overlape of bus and sequencer
- activity for my test is as above. I didn't count paper cycles,
- but saw my fps get improved when I do the above VS 2 move.b ,(a1)+
- (BTW notice the instruction register usage, and the ordering. should
- be optimal for a 060 and take the best advantage of overlap in the
- case of a 2 move.b to mem version)
- I agree about doing word read can cross long boundary and require 2
- access... But if its a problem on other usage of the loop above
- Its so simple to make it write to (a1)+ vs d3.
-
- Stephan
-